home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Samples / SampleCode / GeometryTest / GTSupport.h < prev    next >
Encoding:
Text File  |  1995-05-03  |  1.8 KB  |  57 lines  |  [TEXT/MPCC]

  1. // My3dSupport.c - QuickDraw 3d routines - interface
  2. //
  3. // This file contains
  4. //
  5. // Created 27th Dec 1994, Nick Thompson, DEVSUPPORT
  6. //
  7. // Modification History:
  8. //
  9. //    12/27/94        nick        initial version
  10.  
  11. #ifndef _MY3DSUPPORT_H_
  12. #define _MY3DSUPPORT_H_
  13.  
  14. // Macintosh System Stuff
  15. #include <Files.h>
  16. #include <Types.h>
  17. #include <Windows.h>
  18.  
  19. // QuickDraw 3D stuff
  20. #include "QD3D.h"
  21. #include "QD3DGroup.h"
  22. #include "QD3DErrors.h"
  23. #include "QD3DView.h"
  24.  
  25. //-------------------------------------------------------------------------------------------
  26.  
  27. struct _documentRecord {
  28.     WindowPtr        fWindow ;                // the window we image into
  29.     TQ3ShaderObject    fShader ;                // illumination shader for the object
  30.     TQ3ViewObject    fView ;                    // the view for the scene
  31.     TQ3GroupObject    fModel ;                // object in the scene being modelled
  32.     TQ3StyleObject    fInterpolation ;        // interpolation style used when rendering
  33.     TQ3StyleObject    fBackFacing ;            // whether to draw shapes that face away from the camera
  34.     TQ3StyleObject    fFillStyle ;            // whether drawn as solid filled object or decomposed to components
  35.     TQ3Matrix4x4    fRotation;                // the transform for the model
  36.     TQ3Point3D        fGroupCenter ;            // the center of the group (for rotation) 
  37.     float            fGroupScale    ;            // scaling factor to apply before drawing
  38. };
  39.  
  40. typedef struct _documentRecord DocumentRec, *DocumentPtr, **DocumentHdl ;
  41.  
  42. //---------------------------------------------------------------------------------------
  43.  
  44. TQ3ViewObject            MyNewView(WindowPtr theWindow) ;
  45. TQ3DrawContextObject    MyNewDrawContext( WindowPtr theWindow) ;
  46. TQ3CameraObject            MyNewCamera(WindowPtr theWindow) ;
  47. TQ3GroupObject            MyNewLights(void) ;
  48. TQ3GroupObject            MyNewModelFromFile(FSSpec *theFileSpec) ;
  49. TQ3Status                 SubmitScene( DocumentHdl theDocument ) ;
  50.  
  51. TQ3Point3D                 AdjustCamera(    DocumentHdl            theDocument,
  52.                                         short                winWidth,
  53.                                         short                winHeight) ;
  54.                                         
  55.  
  56. #endif
  57.